package pers.books.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 
 * PageController
 *
 * @author 姜治昊
 * @time 2018年4月27日 上午10:46:31
 */
@Controller
@RequestMapping("/")
public class PageController {

	@RequestMapping(value = "index", method = RequestMethod.GET)
	public String index() {
		return "index";
	}

	@RequestMapping(value = "icon", method = RequestMethod.GET)
	public String icon() {
		return "icon";
	}

	@RequestMapping(value = "test", method = RequestMethod.GET)
	public String test() {
		return "test";
	}

	/**
	 * 我的图书
	 * 
	 * @return
	 */
	@RequestMapping(value = "user/books", method = RequestMethod.GET)
	public String books() {
		return "user/books";
	}
	
	/**
	 * 作者管理
	 * @return
	 */
	@RequestMapping(value = "sys/authors", method = RequestMethod.GET)
	public String authors() {
		return "sys/authors";
	}

}
